package com.dsg.entity.bank;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 銀行往來過數結果
 * </p>
 *
 * @author system
 * @since 2020-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_bank_result")
@ApiModel(value = "DsgBankResult对象", description = "銀行往來過數結果")
public class DsgBankResult implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "過數檔案主鍵")
    @TableField("RECORD_ID")
    private String recordId;

    @ApiModelProperty(value = "过数流水号")
    @TableField("SERIAL_NUMBER")
    private String serialNumber;

    @ApiModelProperty(value = "交易类型")
    @TableField("TRANS_TYPE")
    private String transType;

    @ApiModelProperty(value = "交易總金額")
    @TableField("TRANS_VALUE")
    private BigDecimal transValue;

    @ApiModelProperty(value = "過數方式")
    @TableField("COUNT_MODE")
    private String countMode;

    @ApiModelProperty(value = "過數銀行名称")
    @TableField("BANK_NAME")
    private String bankName;

    @ApiModelProperty(value = "過數銀行账号/信用咭号")
    @TableField("BANK_NO")
    private String bankNo;

    @ApiModelProperty(value = "待卡人姓名")
    @TableField("HOLD_NAME")
    private String holdName;

    @ApiModelProperty(value = "过数日期")
    @TableField("COUNT_DATE")
    private Date countDate;

    @ApiModelProperty(value = "返回状态码/拒绝代码")
    @TableField("RESPONSE_CODE")
    private String responseCode;

    @ApiModelProperty(value = "返回状态码说明")
    @TableField("RESPONSE_TEXT")
    private String responseText;

    @ApiModelProperty(value = "过数状态")
    @TableField("RESULT_STATUS")
    private Integer resultStatus;

    @ApiModelProperty(value = "企業編號")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    /************************枚舉**********************/
    public enum AppStatus {
        success(1), failure(0);
        Integer code;

        AppStatus(int code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }
    }
}
